// Copyright (c) 2022 Presto Labs Pte. Ltd.
// Author: xguo

#pragma once

#include <memory>
#include <string>

#include "coin2/exchange/base/order/order.h"
#include "coin2/exchange/mexc_futures/api_order/native_private_client.h"

namespace coin2::exchange::mexc_futures::api_order {

class MexcFuturesRestAsyncAsioSubscriber : public base::order::RestSubscriber {
 public:
  using RestClient = MexcFuturesNativePrivateClient;

 public:
  using RestSubscriber::RestSubscriber;
  void SubscribeAsync() override;

  void QueryBalance();
  void QueryPosition();
  void QueryOpenOrders();
  void QueryHistoryOrders();
  void QueryFills(const std::string& native_symbol);

  auto rest_client() { return dynamic_cast<RestClient*>(rest_client_); }
};

}  // namespace coin2::exchange::mexc_futures::api_order
